//
//  Person.m
//  RaiseMan
//
//  Created by Pierre Duchêne on 02/01/09.
//  Copyright 2009 IFSIC. All rights reserved.
//

#import "Person.h"


@implementation Person
- (id)init
{
	[super init];
	expectedRaise = 0.5;
	personName = @"Nouvelle Personne";
	return self;
}

- (void)dealloc
{
	[personName release];
	[super dealloc];
}
- (void)setNilValueForKey:(NSString *)key
{
	if ([key isEqual:@"expectedRaise"]) {
		[self setExpectedRaise:0.0];
	}
	else {
		[super setNilValueForKey:key];
	}
}
@synthesize personName;
@synthesize expectedRaise;
@end
